
package webservices.framework.affilinet.types.productservice;

import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for CategoryTreeNode complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="CategoryTreeNode">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="CategoryId" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
 *         &lt;element name="ParentCategoryId" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
 *         &lt;element name="Title" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="SubCategories" type="{http://affilinet.framework.webservices/types/ProductService}ArrayOfCategoryTreeNode" minOccurs="0"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CategoryTreeNode", propOrder = {
    "categoryId",
    "parentCategoryId",
    "title",
    "subCategories"
})
public class CategoryTreeNode {

    @XmlElement(name = "CategoryId")
    protected Integer categoryId;
    @XmlElement(name = "ParentCategoryId")
    protected Integer parentCategoryId;
    @XmlElementRef(name = "Title", namespace = "http://affilinet.framework.webservices/types/ProductService", type = JAXBElement.class)
    protected JAXBElement<String> title;
    @XmlElementRef(name = "SubCategories", namespace = "http://affilinet.framework.webservices/types/ProductService", type = JAXBElement.class)
    protected JAXBElement<ArrayOfCategoryTreeNode> subCategories;

    /**
     * Gets the value of the categoryId property.
     * 
     * @return
     *     possible object is
     *     {@link Integer }
     *     
     */
    public Integer getCategoryId() {
        return categoryId;
    }

    /**
     * Sets the value of the categoryId property.
     * 
     * @param value
     *     allowed object is
     *     {@link Integer }
     *     
     */
    public void setCategoryId(Integer value) {
        this.categoryId = value;
    }

    /**
     * Gets the value of the parentCategoryId property.
     * 
     * @return
     *     possible object is
     *     {@link Integer }
     *     
     */
    public Integer getParentCategoryId() {
        return parentCategoryId;
    }

    /**
     * Sets the value of the parentCategoryId property.
     * 
     * @param value
     *     allowed object is
     *     {@link Integer }
     *     
     */
    public void setParentCategoryId(Integer value) {
        this.parentCategoryId = value;
    }

    /**
     * Gets the value of the title property.
     * 
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *     
     */
    public JAXBElement<String> getTitle() {
        return title;
    }

    /**
     * Sets the value of the title property.
     * 
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *     
     */
    public void setTitle(JAXBElement<String> value) {
        this.title = ((JAXBElement<String> ) value);
    }

    /**
     * Gets the value of the subCategories property.
     * 
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link ArrayOfCategoryTreeNode }{@code >}
     *     
     */
    public JAXBElement<ArrayOfCategoryTreeNode> getSubCategories() {
        return subCategories;
    }

    /**
     * Sets the value of the subCategories property.
     * 
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link ArrayOfCategoryTreeNode }{@code >}
     *     
     */
    public void setSubCategories(JAXBElement<ArrayOfCategoryTreeNode> value) {
        this.subCategories = ((JAXBElement<ArrayOfCategoryTreeNode> ) value);
    }

}
